<?php

    if(!isset($session_set))
        session_start();

    // define the current date in YYYY_MM_DD format
    // if it's not already defined
    if(!isset($_SESSION['currentdate']) || isset($_GET["reset"]))
        $_SESSION['currentdate'] = date("Y-m-d");

    // define the current index of the set
    // if it's not already defined
    if(!isset($_SESSION['setindex']) || isset($_GET["reset"]))
        $_SESSION['setindex'] = 0;
    
?>
